package com.kt.mes.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 工作计划对象 t_work_plan
 * 
 * @author lzc
 * @date 2021-02-02
 */
public class WorkPlan extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String oId;

    /** 工艺编号 */
    @Excel(name = "工艺编号")
    private String prId;

    /** 完成量 */
    @Excel(name = "完成量")
    private Integer finPos;

    /** 总量 */
    @Excel(name = "总量")
    private Integer sumPos;

    /** 状态 */
    @Excel(name = "状态")
    private String wpState;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date beginTime;

    /** 完成时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "完成时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setoId(String oId) 
    {
        this.oId = oId;
    }

    public String getoId() 
    {
        return oId;
    }
    public void setPrId(String prId) 
    {
        this.prId = prId;
    }

    public String getPrId() 
    {
        return prId;
    }
    public void setFinPos(Integer finPos) 
    {
        this.finPos = finPos;
    }

    public Integer getFinPos() 
    {
        return finPos;
    }
    public void setSumPos(Integer sumPos) 
    {
        this.sumPos = sumPos;
    }

    public Integer getSumPos() 
    {
        return sumPos;
    }
    public void setWpState(String wpState) 
    {
        this.wpState = wpState;
    }

    public String getWpState() 
    {
        return wpState;
    }
    public void setBeginTime(Date beginTime) 
    {
        this.beginTime = beginTime;
    }

    public Date getBeginTime() 
    {
        return beginTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("oId", getoId())
            .append("prId", getPrId())
            .append("finPos", getFinPos())
            .append("sumPos", getSumPos())
            .append("wpState", getWpState())
            .append("beginTime", getBeginTime())
            .append("endTime", getEndTime())
            .toString();
    }
}
